package day76.ling.in.services.Impl;

import day76.ling.in.dao.EmpMapper;
import day76.ling.in.entity.Emp;
import day76.ling.in.services.EmpServices;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Slf4j
@Transactional
public class EmpServicesImpl implements EmpServices {
 @Autowired
 private EmpMapper empMapper;

    @Override
    public List<Emp> getAll(){
        return empMapper.getAll();
    }
}
